package com.project.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.common.api.BusinessApi;
import com.common.core.domain.AjaxResult;
import com.project.domain.bo.ProjectTabListBo;
import com.project.domain.entity.BizYfContractMember;
import com.project.domain.entity.BizYfContract;
import com.project.domain.entity.BizYfContractDocument;

import java.util.List;

public interface IYfContractService  extends IService<BizYfContract>, BusinessApi {

    /**
     * 保存横向进账合同
     * @param yfContract
     * @return 新建记录的id
     */
 String saveYfInfos(BizYfContract yfContract);

    /**
     * 修改横向进账合同
     * @param yfContract
     * @return
     */
    AjaxResult editYfInfos(BizYfContract yfContract);

    /**
     * 保存横向进账合同 成员信息
     * @param yfContractMemberList
     * @return
     */
    AjaxResult saveYfMember(ProjectTabListBo<BizYfContractMember> yfContractMemberList);

    /**
     * 保存横向进账合同 文档
     * @param projectTabListBo
     * @param
     * @return
     */
    AjaxResult saveYfFile(ProjectTabListBo<BizYfContractDocument> projectTabListBo) throws Exception;

    /**
     * 根据合同id获取横向合同集合
     * @param proId
     * @return
     */
 List<BizYfContractDocument> getYfDocumentByProId(String proId);

 BizYfContract  getYfBase(String id);

 String delYfInfos(String proId);
}
